﻿using wojilu.Web.Mvc.Attr;

namespace wojilu.Web.Controller
{
    public class WapController : BaseTempController
    {
        public WapController()
        {

        }

        [NonVisit]
        public virtual void setpublic()
        {
            set("top", loadHtml(new WapPublicController().Top));
            set("bottom", loadHtml(new WapPublicController().Bottom));
        }

        [HttpGet]
        public virtual void Index()
        {
            view(DefaultWapTemp + "Index");



            setpublic();
            SetPublic();
        }

        public override void Layout()
        {
            view(DefaultWapTemp + "Public/Layout");

            setpublic();
            SetPublic();
        }

    }
}
